<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="jquery/jquery.min.js"></script>
</head>
<body>
    <input type="text" class="form-control" placeholder="请输入账号" name="username">
    <input type="password" class="form-control" placeholder="请输入密码" name="password">
    <button type="button" class="btn btn-primary btn-block btn-flat submitBtn">登录</button>

<script>
    $(".submitBtn").click = function () {
        console.log(1);
        var username = $('input[name=username]').val()
        var password = $('input[name=password]').val()

        $.post('/rbac/login', {username:username,password:password}, function (data) {
            if (data.code == 200) {
                window.location.href = 'http://www.baidu.com';
            }
        })
    }
</script>

</body>
</html>